/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

import BO.Iter.HocPhanBO;
import DAO.Iter.HocKyDAO;
import DAO.Iter.HocPhanDAO;
import DAO.Iter.MonHocDAO;
import TableModel.Hocphan;
import java.util.List;


/**
 *
 * @author vt
 */
public class HocPhanBOImpl implements HocPhanBO {
    
    HocPhanDAO hpDao;

    public HocPhanDAO getHpDao() {
        return hpDao;
    }

    public void setHpDao(HocPhanDAO hpDao) {
        this.hpDao = hpDao;
    }

    
    @Override
    public List<Hocphan> listAll() {
     return   hpDao.findAllLop();
    }

    @Override
    public void delete(Hocphan a) {
       hpDao.delete(a);
    }

    @Override
    public void add(Hocphan a) {
         hpDao.add(a);
    }

    @Override
    public void edit(Hocphan a) {
          hpDao.edit(a);
    }

    @Override
    public Hocphan findById(String id) {
        return hpDao.findHocPhan(id);
    }
    
}
